/*
                    Network Definitions Header
*/
#ifndef NETWORKDEFINITIONS_H
#define NETWORKDEFINITIONS_H

#include "SDL/SDL.h"

#define         UP                          0
#define         DOWN                        1
#define         LEFT                        2
#define         RIGHT                       3

#define         SNAKE_WIDTH                 32
#define         SNAKE_HEIGHT                32

#define         TILE_WIDTH                  32
#define         TILE_HEIGHT                 32

#define         COLLISIONTYPE_CLOSED        0
#define         COLLISIONTYPE_OPEN          1
#define         COLLISIONTYPE_LEDGE_UP      2
#define         COLLISIONTYPE_LEDGE_RIGHT   3
#define         COLLISIONTYPE_LEDGE_DOWN    4
#define         COLLISIONTYPE_LEDGE_LEFT    5
#define         COLLISIONTYPE_WATER         6

#define         EVENTTYPE_NONE              -1

#define         DISTANCE_MOVE               32

#if SDL_BYTEORDER == SDL_BIG_ENDIAN
    #define RMASK 0xff000000
    #define GMASK 0x00ff0000
    #define BMASK 0x0000ff00
    #define AMASK 0x000000ff
#else
    #define RMASK 0x000000ff
    #define GMASK 0x0000ff00
    #define BMASK 0x00ff0000
    #define AMASK 0xff000000
#endif

#endif
